package com.yuanjiu.dao.w1919;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import com.yuanjiu.pojo.w1919.CategoryIdName;
import com.yuanjiu.pojo.w1919.CategoryObject;

@Component("w1919Bean")
public interface CategoryDao {

public void insertCategory(List<CategoryObject> list)throws Exception;
	
	public List<CategoryIdName> getCategoryName() throws Exception;

	public List<String> getCategoriesByParent(String catid) throws Exception;

	public List<CategoryObject> getCategories(Integer id)throws Exception;
	
	public String getCategoryIdByName(@Param("name")String value, @Param("parent")String categoryOneId)throws Exception;
}
